package com.zlp.spring.one.service.impl;

import com.zlp.spring.one.annotation.Autowired;
import com.zlp.spring.one.annotation.Component;
import com.zlp.spring.one.service.OrderService;
import com.zlp.spring.one.service.UserService;

@Component("orderService")
public class OrderServiceImpl implements OrderService{

    @Autowired
    private UserService userService;

    private String name = "name";

    public void setName(String name){
        this.name = name;
    }

    @Override
    public void test() {
        System.out.println(userService);
        System.out.println(name);
    }
}
